package com.lagou.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UsersDao {

    /**
     * 新增用户
     */
    @Insert("insert into users(id,username,password,address) values(#{id},#{username},#{password},#{address})")
    int insertUser(@Param("id") Long id, @Param("username") String username, @Param("password") String password,
                   @Param("address") String address);

}
